package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 等待的收款，客户欠的款
 * </p>
 *
 * @author chenj
 * @since 2020-03-12
 */
public class ArrearsWait extends Model<ArrearsWait> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;

    /**
     * 客户id
     */
    private String customId;

    /**
     * 总共应收款
     */
    private BigDecimal total;

    /**
     * 已收欠款
     */
    private BigDecimal hasIn;

    /**
     * 优惠
     */
    private BigDecimal discount;

    /**
     * 剩余应收款
     */
    private BigDecimal waitIn;

    /**
     * 所属公司id
     */
    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getCustomId() {
        return customId;
    }

    public void setCustomId(String customId) {
        this.customId = customId;
    }
    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }
    public BigDecimal getHasIn() {
        return hasIn;
    }

    public void setHasIn(BigDecimal hasIn) {
        this.hasIn = hasIn;
    }
    public BigDecimal getDiscount() {
        return discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }
    public BigDecimal getWaitIn() {
        return waitIn;
    }

    public void setWaitIn(BigDecimal waitIn) {
        this.waitIn = waitIn;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ArrearsWait{" +
            "id=" + id +
            ", customId=" + customId +
            ", total=" + total +
            ", hasIn=" + hasIn +
            ", discount=" + discount +
            ", waitIn=" + waitIn +
            ", companyId=" + companyId +
        "}";
    }
}
